using System;
using System.Collections.Generic;

namespace Close.io.API
{

	public class ActivityQueryBuilder : QueryBuilderBase
	{
		private  string _userId;

		public ActivityQueryBuilder(string leadId)
			: base(leadId)
		{

		}

		public ActivityQueryBuilder SetUserId(string userId)
		{
			Add("user_id",userId);
			return this;
		}

		public ActivityQueryBuilder SetDateCreatedGreaterThan(DateTime dateCreated)
		{
			Add("date_created__gt",dateCreated.ToString("s"));
			return this;
		}

		public ActivityQueryBuilder SetDateCreatedLessThan(DateTime dateCreated)
		{
			Add("date_created__lt",dateCreated.ToString("s"));
			return this;
		}

		public ActivityQueryBuilder ReturnEmailThreads()
		{
			Add("thread_emails", "true");
			return this;
		}

		public ActivityQueryBuilder ReturnOnlyEmailThreads()
		{
			Add("thread_emails", "only");
			return this;
		}

	 

	}
}